package com.peace.hospital.entity.common;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.peace.hospital.entity.drugstorage.Pharmacy;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.sql.Date;

/**
 * <p>
 * 药品信息表
 * </p>
 *
 * @author 姜均
 * @since 2019-11-11
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Druginformation implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 药品id
     */
    @TableId(value = "drugid", type = IdType.AUTO)
    private Integer drugid;

    /**
     * 药品类别编号
     */
    private Integer druid;


//药房id
    private Integer phaid;
    /**
     * 药品名称
     */
    private String drugname;

    /**
     * 库存量
     */
    private Integer drugnumber;

//药品价格
    private double drugprice;

    /**
     * 生产日期
     */
    private Date drugdate;

    /**
     * 药瓶类别数据库名称
     */
    private String drugdbsource;

    /**
     * 保质期
     */
    private String dugperiod;
//报警日期
    private Date drugplidate;
    //报警值
    private int drugplival;

    private int prid;

    //数量
    @TableField(exist = false)
    private int drugnum;

    public int getDrugnum() {
        return drugnum;
    }

    public void setDrugnum(int drugnum) {
        this.drugnum = drugnum;
    }

    // 价格bean对象
    @TableField(exist = false)
    private Price price;
    //药品类别对象
    @TableField(exist = false)
    private Drugcategory drugcategory;
//药房对象
    @TableField(exist = false)
    private Pharmacy pharmacy;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getDrugid() {
        return drugid;
    }

    public void setDrugid(Integer drugid) {
        this.drugid = drugid;
    }

    public Integer getDruid() {
        return druid;
    }

    public void setDruid(Integer druid) {
        this.druid = druid;
    }

    public Integer getPhaid() {
        return phaid;
    }

    public void setPhaid(Integer phaid) {
        this.phaid = phaid;
    }

    public String getDrugname() {
        return drugname;
    }

    public void setDrugname(String drugname) {
        this.drugname = drugname;
    }

    public Integer getDrugnumber() {
        return drugnumber;
    }

    public void setDrugnumber(Integer drugnumber) {
        this.drugnumber = drugnumber;
    }

    public double getDrugprice() {
        return drugprice;
    }

    public void setDrugprice(double drugprice) {
        this.drugprice = drugprice;
    }

    public Date getDrugdate() {
        return drugdate;
    }

    public void setDrugdate(Date drugdate) {
        this.drugdate = drugdate;
    }

    public String getDrugdbsource() {
        return drugdbsource;
    }

    public void setDrugdbsource(String drugdbsource) {
        this.drugdbsource = drugdbsource;
    }

    public String getDugperiod() {
        return dugperiod;
    }

    public void setDugperiod(String dugperiod) {
        this.dugperiod = dugperiod;
    }

    public Date getDrugplidate() {
        return drugplidate;
    }

    public void setDrugplidate(Date drugplidate) {
        this.drugplidate = drugplidate;
    }

    public int getDrugplival() {
        return drugplival;
    }

    public void setDrugplival(int drugplival) {
        this.drugplival = drugplival;
    }

    public int getPrid() {
        return prid;
    }

    public void setPrid(int prid) {
        this.prid = prid;
    }

    public Price getPrice() {
        return price;
    }

    public void setPrice(Price price) {
        this.price = price;
    }

    public Drugcategory getDrugcategory() {
        return drugcategory;
    }

    public void setDrugcategory(Drugcategory drugcategory) {
        this.drugcategory = drugcategory;
    }

    public Pharmacy getPharmacy() {
        return pharmacy;
    }

    public void setPharmacy(Pharmacy pharmacy) {
        this.pharmacy = pharmacy;
    }
}
